public class Solution {
    public int[] twoSum(int[] nums, int target) {
return new int[]{1,2};
    }
public static void main(String[] args) {
        Solution solution = new Solution();
        //testcase1
        int[] nums = {2,7,11,5};
        int target = 9;
        int[] ret = solution.twoSum(nums,target);
        if(ret.length == 2 && ret[0] == 0 && ret[1] == 1){
            System.out.println("ok");
        }else {
            System.out.println("fail");
        }
        // 2
        int[] nums2 = {2,7,11,5};
        int target2 = 9;
        int[] ret2 = solution.twoSum(nums2,target2);
        if(ret2.length == 2 && ret2[0] == 0 && ret2[1] == 1){
            System.out.println("ok");
        }else {
            System.out.println("fail");
        }
    }
}